passthrough/amd: avoid reading an uninitialized variable
authorTim Deegan <tim@xen.org>
Fri, 24 Apr 2015 10:04:57 +0000 (12:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Apr 2015 10:04:57 +0000 (12:04 +0200)
commita8ccf2d9f6f291f8fc6003e3d8bc7275ac1cc69f
tree5ffac810a57ab2ac3a611bd42ceb08fe2d3223e2
parent92ff75384bce7a11e27fbfaf0c531e88dd1ab4c7
passthrough/amd: avoid reading an uninitialized variable

update_intremap_entry_from_msi() doesn't write to its data pointer on
some error paths, so we copying that variable into the msg would count
as undefined behaviour.

Signed-off-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
xen/drivers/passthrough/amd/iommu_intr.c